package com.atguigu.crowd.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author cyb315
 * @create 2021-11-11 16:44
 */
@Configuration
public class CrowdWebMvcConfig implements WebMvcConfigurer {


    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        // 同意协议页面
        registry.addViewController("/agree/protocol/page").setViewName("project-agree");
        // 发起项目页面
        registry.addViewController("/launch/project/page").setViewName("project-launch");
        // 收集回报信息页面
        registry.addViewController("/return/info/page").setViewName("project-return");
        // 收集确认信息页面
        registry.addViewController("/create/confirm/page").setViewName("project-confirm");
        // 最终完成页面
        registry.addViewController("/create/success").setViewName("project-success");

    }
}
